Skip to content

Add and use vectorized packing in ZVL128B and ZVL256B for RISCV #5422

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

ChipKerchner
Copy link
Contributor

@ChipKerchner ChipKerchner commented Aug 12, 2025

Add and use vectorized packing in ZVL128B and ZVL256B for RISCV. Up to 3x faster than generic scalar functions

Example: Size = 127 x 127

gemm_ncopy_16_rvv - 1.6x faster
gemm_tcopy_16_rvv - 1.5x faster
gemm_ncopy_8_rvv - 1.4x faster
gemm_tcopy_8_rvv - 1.4x faster
gemm_ncopy_4_rvv - 1.1x faster
gemm_tcopy_4_rvv - 1.2x faster

@ChipKerchner ChipKerchner changed the title Add and use vectorized packing to ZVL128B and ZVL256B. Up to 3x faster than generic scalar functions Add and use vectorized packing to ZVL128B and ZVL256B in RISCV. Up to 3x faster than generic scalar functions Aug 12, 2025
@ChipKerchner
Copy link
Contributor Author

Not quite sure why the one test is timing out but I don't think it's related to these changes.

@ChipKerchner ChipKerchner marked this pull request as draft August 12, 2025 23:04
@ChipKerchner ChipKerchner changed the title Add and use vectorized packing to ZVL128B and ZVL256B in RISCV. Up to 3x faster than generic scalar functions Add and use vectorized packing in ZVL128B and ZVL256B for RISCV Aug 12, 2025
@ChipKerchner
Copy link
Contributor Author

Investigating performance for DGEMM.

@ChipKerchner
Copy link
Contributor Author

ChipKerchner commented Aug 13, 2025

Only use for SGEMM, since DGEMM shows a slowdown.

Overall, I'm seeing a 5-9% improvement on SGEMM.

@ChipKerchner ChipKerchner marked this pull request as ready for review August 13, 2025 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant